#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
void solve()
{
    int n = 0;
    while (~scanf("%d", &n))
    {
        int i = 0;
        int j = 0;
        for (i = 0; i < n; i++)
        {
            for (j = 0; j < n - i - 1; j++)
                cout << ' ';
            cout << '*';
            for (j = 0; j < i; j++)
                cout << "**";
            cout << endl;
        }
        for (i -= 2; i >= 0; i--)
        {
            for (j = 0; j < n - i - 1; j++)
                cout << ' ';
            cout << '*';
            for (j = 0; j < i; j++)
                cout << "**";
            cout << endl;
        }
    }
}
int main()
{
    solve();
    return 0;
}
